import java.io.*;
import java.sql.*;

import java.util.Iterator;
import java.util.Vector;

import oracle.jdbc.driver.OracleDriver;

public class ConexionBD {


  public ConexionBD()
  {

  }

  public synchronized Connection DBConect()
        throws SQLException
    {
        Connection connection = null;
        try
        {
            Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
        }
        catch(Exception exception)
        {
            exception.printStackTrace();
        }
        //recupera();
        try
        {
            connection = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","BDR","12345");

        }
        catch(Exception exception1)
        {
            exception1.printStackTrace();
        }
        return connection;
    }
  
  

}
